WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway D

Total Complexity 420
Dependencies 28
Dependents 13
Total lines 4,061
Lines of code 1,484
Logical lines of code 705
Comment lines 1,724
Methods 153
Properties 21

Methods 153

Method Rating Maintainability Complexity Lines of code
add_transaction_data()
C
41 25 47
process_refund()
A
38 13 71
maybe_refund_gift_card()
A
40 13 57
__construct()
A
41 13 56
init_form_fields()
A
39 11 66
add_debug_message()
A
54 11 18
get_credit_card_transaction_approved_message()
A
47 10 33
add_shared_settings_form_fields()
A
48 10 30
admin_options()
A
41 5 87
mark_order_as_held()
A
53 8 20
is_available()
A
55 8 19
complete_payment()
A
54 8 18
add_authorization_charge_form_fields()
S
45 6 43
get_icon()
S
57 7 15
build_split_payment_order_note()
S
55 6 17
do_transaction_failed_result()
S
58 6 15
load_shared_settings()
S
58 6 15
get_customer_id()
S
55 5 19
mark_order_as_failed()
S
57 5 17
get_payment_method_image_url()
S
58 5 14
get_order_tender_types()
S
62 5 13
add_customer_data()
S
61 5 12
process_void()
S
54 4 21
get_order()
S
56 4 15
perform_credit_card_charge()
S
64 5 8
add_support()
S
62 4 11
localize_script()
S
61 4 11
mark_order_as_voided()
S
57 3 16
enqueue_gateway_assets()
S
58 3 15
maybe_render_held_order_received_text()
S
68 4 7
get_order_for_capture()
S
58 3 14
add_multi_payment_refund_order_note()
S
59 3 13
get_order_with_unique_transaction_ref()
S
60 3 12
get_refund_failed_wp_error()
S
58 2 17
add_csc_form_fields()
S
57 2 17
get_void_failed_wp_error()
S
58 2 17
delete_order_meta()
S
65 3 9
update_order_meta()
S
65 3 9
get_order_for_refund()
S
61 3 10
enqueue_scripts()
S
67 3 9
add_refund_data()
S
70 3 6
load_settings()
S
67 3 8
get_order_meta()
S
65 3 9
add_void_data()
S
70 3 6
add_order_meta()
S
64 3 9
currency_is_accepted()
S
66 3 9
enqueue_payment_form_assets()
S
63 3 9
get_customer_id_user_meta_name()
S
69 3 6
supports_subscriptions()
S
79 3 3
supports_pre_orders()
S
79 3 3
init_integrations()
S
65 3 9
is_pay_page_gateway()
S
64 3 10
get_payment_method_defaults()
S
60 2 14
get_available_card_types()
S
58 2 14
get_payment_form_js_localized_script_params()
S
51 1 26
add_refund_order_note()
S
62 2 11
add_card_types_form_fields()
S
56 1 18
get_guest_customer_id()
S
68 2 7
debug_log()
S
78 2 3
get_environments()
S
69 2 6
get_integration()
S
78 2 3
update_customer_id()
S
70 2 6
remove_customer_id()
S
70 2 6
supports_credit_card_charge()
S
79 2 3
payment_fields()
S
70 2 7
supports_credit_card_authorization()
S
79 2 3
get_subscriptions_integration()
S
78 2 3
supports_credit_card_charge_virtual()
S
79 2 3
supports_credit_card_partial_capture()
S
79 2 3
perform_credit_card_authorization()
S
70 2 5
is_test_environment()
S
71 2 6
is_production_environment()
S
71 2 6
add_milestone_hooks()
S
60 1 15
get_request()
S
71 2 6
debug_checkout()
S
78 2 3
supports_voids()
S
79 2 3
get_order_button_text()
S
73 2 4
csc_enabled_for_tokens()
S
79 2 3
get_checkout_pay_page_order_id()
S
74 2 4
get_default_description()
S
71 2 6
get_pre_orders_integration()
S
78 2 3
mark_order_as_refunded()
S
66 2 8
get_default_title()
S
71 2 6
get_payment_currency()
S
65 2 9
log_api_request()
S
70 2 6
add_api_request_logging()
S
71 2 5
maybe_cancel_voided_order()
S
67 2 8
supports_card_types()
S
79 2 3
get_environment_name()
S
70 2 6
get_environment()
S
82 1 3
set_supports()
S
81 1 3
get_available_countries()
S
82 1 3
inherit_settings()
S
80 1 3
share_settings()
S
82 1 3
csc_required()
S
81 1 3
csc_enabled()
S
80 1 3
is_configured()
S
82 1 3
is_environment()
S
80 1 3
is_gift_card_applied()
S
79 1 3
get_order_authorization_amount()
S
74 1 4
get_order_capture_maximum()
S
74 1 4
get_api()
S
81 1 3
get_payment_form_instance()
S
80 1 3
get_partial_total_on_credit_card()
S
80 1 3
get_partial_total_on_gift_card()
S
80 1 3
get_charge_type()
S
80 1 3
is_credit_card_gateway()
S
79 1 3
is_enabled()
S
80 1 3
get_payment_type()
S
82 1 3
is_hosted_gateway()
S
82 1 3
is_direct_gateway()
S
82 1 3
debug_off()
S
80 1 3
get_plugin()
S
82 1 3
get_accepted_currencies()
S
82 1 3
is_detailed_customer_decline_messages_enabled()
S
80 1 3
get_method_title()
S
82 1 3
supports_tokenization()
S
80 1 3
get_id_dasherized()
S
79 1 3
maybe_void_instead_of_refund()
S
82 1 3
build_pre_orders_integration()
S
80 1 3
add_payment_gateway_transaction_data()
S
91 1 2
supports_apple_pay()
S
80 1 3
get_apple_pay_capabilities()
S
71 1 7
get_apple_pay_currencies()
S
81 1 3
get_order_for_apple_pay()
S
71 1 6
payment_page()
S
78 1 3
supports_customer_id()
S
80 1 3
get_method_form_fields()
S
100 1 0
add_environment_form_fields()
S
63 1 10
get_gateway_js_handle()
S
80 1 3
add_pay_page_handler()
S
78 1 3
get_capture_handler()
S
82 1 3
init_capture_handler()
S
80 1 3
build_subscriptions_integration()
S
80 1 3
supports_credit_card_capture()
S
80 1 3
get_id()
S
82 1 3
tokenize_after_sale()
S
82 1 3
get_order_meta_prefix()
S
79 1 3
init_payment_tokens_handler()
S
80 1 3
build_payment_tokens_handler()
S
80 1 3
get_payment_tokens_handler()
S
82 1 3
tokenize_before_sale()
S
82 1 3
tokenize_with_sale()
S
82 1 3
supports_token_editor()
S
80 1 3
get_integrations()
S
82 1 3
add_tokenization_form_fields()
S
63 1 10
tokenization_enabled()
S
76 1 4
get_card_types()
S
82 1 3
supports_add_payment_method()
S
80 1 3
is_paid_capture_enabled()
S
77 1 3
is_partial_capture_enabled()
S
74 1 4
get_authorization_time_window()
S
82 1 3
supports_payment_form()
S
80 1 3